package com.yang.booking.controller;

import com.yang.booking.service.OpenFeginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;
import java.util.Map;

@RestController
public class StaffController {

    @Autowired
    private OpenFeginService openFeginService;

    @PostMapping("/consumer/staff/queryStaffBoard")
    public Map<String, Object> queryStaffBoard(@RequestParam(name = "storeId") String storeId,
                                               @RequestParam(name = "arrivalDate") String arrivalDate
    ) throws ParseException {
        return openFeginService.queryStaffBoard(storeId, arrivalDate);
    }
}
